package com.jinduplan.planmanager.mvp.model

import com.cxz.kotlin.baselibs.bean.BaseBean
import com.cxz.kotlin.baselibs.mvp.BaseModel
import com.cxz.kotlin.baselibs.utils.GsonHelper
import com.jinduplan.planmanager.bean.ClockinRecord
import com.jinduplan.planmanager.bean.HttpResult
import com.jinduplan.planmanager.http.MainRetrofit
import com.jinduplan.planmanager.mvp.contract.ClockInContract
import com.jinduplan.planmanager.mvp.contract.ClockinRecordContract
import io.reactivex.rxjava3.core.Observable

class ClockinRecordModel : BaseModel(), ClockinRecordContract.Model {


    override fun refreshClockinRecord(page: String, limit: String): Observable<HttpResult<ClockinRecord>> {
        return MainRetrofit.service.clockinList(GsonHelper.getRequestBoby(arrayListOf("page","limit"),
            arrayListOf(page,limit)))
    }

}